
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class CurrencyBO : Csla.BusinessBase<CurrencyBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in CurrencyBO
			//AuthorizationRules.AllowRead(CurrencyIDProperty, "CurrencyBOReadGroup");
			//AuthorizationRules.AllowRead(CurrencyNameProperty, "CurrencyBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "CurrencyBOReadGroup");

			//AuthorizationRules.AllowWrite(CurrencyNameProperty, "CurrencyBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "CurrencyBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of CurrencyBO
			//AuthorizationRules.AllowCreate(typeof(CurrencyBO), "CurrencyBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(CurrencyBO), "CurrencyBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(CurrencyBO), "CurrencyBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.Currency data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
